{% extends 'blog/blog.html' %}

{% block title %}Blog entry{% endblock %}

{% block body %} 
	ID: {{ entry.id }} <br/>
	Name: {{ entry.name }} <br/>
	Content: {{ entry.content }} <br/>

	<a href="/blog">Go back</a><br/>
	
	<h2>Comments here</h2>
	{{ entry.comments}}
	<ol>
	{% for comment in entry.comment_set.all %}
		<li>{{ comment.content }}</li>
	{% endfor %}
	</ol>
	

	<h1>Add comment:</h1>

	<form action="/blog/{{ entry.id }}/comment/" method="post">
		<textarea name="comment">Comment here</textarea>
		<input type="submit" value="Post" />
	</form>
{% endblock %}
